ci: Set LSAN_OPTIONS for tests
authorMatthias Clasen <mclasen@redhat.com>
Thu, 9 Jul 2020 02:19:32 +0000 (22:19 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 9 Jul 2020 19:07:50 +0000 (15:07 -0400)
When running the testsuite with the address sanitizer,
many of our dependencies cause it to report cause it
to report memory leaks, causing tests to fail.
Therefore, point the leak sanitizer at a list of
suppressions. The list is kept in the lsan.supp
file in git.

.gitlab-ci/run-tests.sh

index e1a0d7f399009bcce2549a7ea96d0215a6287450..952b2bdd8112ce0fc8867320d9b5a995f481b692 100755 (executable)
@@ -7,6 +7,9 @@ srcdir=$( pwd )
 builddir=$1
 backend=$2
 
+# Ignore memory leaks lower in dependencies
+export LSAN_OPTIONS=suppressions=$srcdir/lsan.supp
+
 case "${backend}" in
   x11)
     xvfb-run -a -s "-screen 0 1024x768x24" \